<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注册</title>
</head>
{% include 'menu.html' %}
<body>
<center>
<form action="/regiest" method="post">
<br />
    <h1 class="text-info">用户注册</h1>
	<table border="0">
    	<tr>
    	<td colspan="2">
        {% if error %}
        <div class="alert alert-error">
        <button class="close" data-dismiss="alert">&times;</button>
        <strong>{{error}}</strong>
        </div>
    	{% endif %}
		</td>
    	</tr>
		<tr>
       <td>用户名：</td><td>{{ form.username }}</td>
	   </tr>
		<tr>
       <td>密码：</td><td>{{ form.password1 }}</td>
	   </tr>
		<tr>
       <td>密码确认：</td><td>{{ form.password2 }}</td>
	   </tr>
        <tr>
        <td colspan="2"><input type="submit" value="注册" class="btn btn-primary" /></td>
        </tr>
    </table>
</form>
</center>
</body>
{% include 'tail.html' %}
</html>